<template>
    <div>
<van-swipe :autoplay="3000" lazy-render>
  <van-swipe-item v-for="image in swiperdataApiData" :key="image">
    <img :src="image.image_src" style="width: 100%;height: 200px;"/>
  </van-swipe-item>
</van-swipe>
    </div>
</template>

<script setup>
//  const images = [
//       'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
//       'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
//     ];
import { ref } from 'vue';
import { swiperdataApi } from '@/api/api';
let swiperdataApiData=ref([])
swiperdataApi().then(res=>{
    swiperdataApiData.value=res.data.message
    console.log(res);
})
</script>

<style lang="scss" scoped>

</style>